﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.OSAGPromjena"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class OSAGPromjenaEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// TextBox for the ID property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxID;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ID property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDLabel;
		
		/// <summary>
		/// ComboBox for the IDOS property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDOS;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDOS property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDOSLabel;
		
		/// <summary>
		/// ComboBox for the IDOSGrupa property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDOSGrupa;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDOSGrupa property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDOSGrupaLabel;
		
		/// <summary>
		/// ComboBox for the IDKontoNabave property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDKontoNabave;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDKontoNabave property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDKontoNabaveLabel;
		
		/// <summary>
		/// ComboBox for the IDKontoIspravka property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDKontoIspravka;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDKontoIspravka property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDKontoIspravkaLabel;
		
		/// <summary>
		/// ComboBox for the IDKontoTroska property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDKontoTroska;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDKontoTroska property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDKontoTroskaLabel;
		
		/// <summary>
		/// ComboBox for the IDOSAG property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDOSAG;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDOSAG property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDOSAGLabel;
		
		/// <summary>
		/// DataTimePicker for the DatumOd property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDatumOd;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DatumOd property.
		/// </summary>
		protected System.Windows.Forms.Label uxDatumOdLabel;
		
		/// <summary>
		/// DataTimePicker for the DatumDo property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDatumDo;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DatumDo property.
		/// </summary>
		protected System.Windows.Forms.Label uxDatumDoLabel;
		#endregion
		
		#region Main entity
		private Entities.OSAGPromjena _OSAGPromjena;
		/// <summary>
		/// Gets or sets the <see cref="Entities.OSAGPromjena"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.OSAGPromjena"/> instance.</value>
		public Entities.OSAGPromjena OSAGPromjena
		{
			get {return this._OSAGPromjena;}
			set
			{
				this._OSAGPromjena = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxID.DataBindings.Clear();
			this.uxID.DataBindings.Add("Text", this.uxBindingSource, "ID", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDOS.DataBindings.Clear();
			this.uxIDOS.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDOS", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDOSGrupa.DataBindings.Clear();
			this.uxIDOSGrupa.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDOSGrupa", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDKontoNabave.DataBindings.Clear();
			this.uxIDKontoNabave.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDKontoNabave", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDKontoIspravka.DataBindings.Clear();
			this.uxIDKontoIspravka.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDKontoIspravka", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDKontoTroska.DataBindings.Clear();
			this.uxIDKontoTroska.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDKontoTroska", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDOSAG.DataBindings.Clear();
			this.uxIDOSAG.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDOSAG", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDatumOd.DataBindings.Clear();
			this.uxDatumOd.DataBindings.Add("Value", this.uxBindingSource, "DatumOd", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDatumDo.DataBindings.Clear();
			this.uxDatumDo.DataBindings.Add("Value", this.uxBindingSource, "DatumDo", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="OSAGPromjenaEditControlBase"/> class.
		/// </summary>
		public OSAGPromjenaEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_OSAGPromjena != null) _OSAGPromjena.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxID = new System.Windows.Forms.TextBox();
			uxIDLabel = new System.Windows.Forms.Label();
			this.uxIDOS = new System.Windows.Forms.ComboBox();
			uxIDOSLabel = new System.Windows.Forms.Label();
			this.uxIDOSGrupa = new System.Windows.Forms.ComboBox();
			uxIDOSGrupaLabel = new System.Windows.Forms.Label();
			this.uxIDKontoNabave = new System.Windows.Forms.ComboBox();
			uxIDKontoNabaveLabel = new System.Windows.Forms.Label();
			this.uxIDKontoIspravka = new System.Windows.Forms.ComboBox();
			uxIDKontoIspravkaLabel = new System.Windows.Forms.Label();
			this.uxIDKontoTroska = new System.Windows.Forms.ComboBox();
			uxIDKontoTroskaLabel = new System.Windows.Forms.Label();
			this.uxIDOSAG = new System.Windows.Forms.ComboBox();
			uxIDOSAGLabel = new System.Windows.Forms.Label();
			this.uxDatumOd = new System.Windows.Forms.DateTimePicker();
			uxDatumOdLabel = new System.Windows.Forms.Label();
			this.uxDatumDo = new System.Windows.Forms.DateTimePicker();
			uxDatumDoLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxIDLabel
			//
			this.uxIDLabel.Text = "ID:";
			this.uxIDLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxIDLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDLabel);			
			//
			// uxID
			//
			this.uxID.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxID);
			this.uxID.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxID);
			//
			// uxIDOSLabel
			//
			this.uxIDOSLabel.Text = "IDOS:";
			this.uxIDOSLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxIDOSLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOSLabel);			
			//
			// uxIDOS
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOS);
			this.uxIDOS.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxIDOS);
			//
			// uxIDOSGrupaLabel
			//
			this.uxIDOSGrupaLabel.Text = "IDOSGrupa:";
			this.uxIDOSGrupaLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxIDOSGrupaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOSGrupaLabel);			
			//
			// uxIDOSGrupa
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOSGrupa);
			this.uxIDOSGrupa.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxIDOSGrupa);
			//
			// uxIDKontoNabaveLabel
			//
			this.uxIDKontoNabaveLabel.Text = "IDKontoNabave:";
			this.uxIDKontoNabaveLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxIDKontoNabaveLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDKontoNabaveLabel);			
			//
			// uxIDKontoNabave
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDKontoNabave);
			this.uxIDKontoNabave.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxIDKontoNabave);
			//
			// uxIDKontoIspravkaLabel
			//
			this.uxIDKontoIspravkaLabel.Text = "IDKontoIspravka:";
			this.uxIDKontoIspravkaLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxIDKontoIspravkaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDKontoIspravkaLabel);			
			//
			// uxIDKontoIspravka
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDKontoIspravka);
			this.uxIDKontoIspravka.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxIDKontoIspravka);
			//
			// uxIDKontoTroskaLabel
			//
			this.uxIDKontoTroskaLabel.Text = "IDKontoTroska:";
			this.uxIDKontoTroskaLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxIDKontoTroskaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDKontoTroskaLabel);			
			//
			// uxIDKontoTroska
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDKontoTroska);
			this.uxIDKontoTroska.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxIDKontoTroska);
			//
			// uxIDOSAGLabel
			//
			this.uxIDOSAGLabel.Text = "IDOSAG:";
			this.uxIDOSAGLabel.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxIDOSAGLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOSAGLabel);			
			//
			// uxIDOSAG
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDOSAG);
			this.uxIDOSAG.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxIDOSAG);
			//
			// uxDatumOdLabel
			//
			this.uxDatumOdLabel.Text = "DatumOd:";
			this.uxDatumOdLabel.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxDatumOdLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumOdLabel);			
			//
			// uxDatumOd
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumOd);
			this.uxDatumOd.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxDatumOd);
			//
			// uxDatumDoLabel
			//
			this.uxDatumDoLabel.Text = "DatumDo:";
			this.uxDatumDoLabel.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxDatumDoLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumDoLabel);			
			//
			// uxDatumDo
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumDo);
			this.uxDatumDo.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxDatumDo);
			//
			// uxIDKontoIspravka
			//				
			this.uxIDKontoIspravka.DisplayMember = "Sifra";	
			this.uxIDKontoIspravka.ValueMember = "ID";	
			//
			// uxIDKontoTroska
			//				
			this.uxIDKontoTroska.DisplayMember = "Sifra";	
			this.uxIDKontoTroska.ValueMember = "ID";	
			//
			// uxIDKontoNabave
			//				
			this.uxIDKontoNabave.DisplayMember = "Sifra";	
			this.uxIDKontoNabave.ValueMember = "ID";	
			//
			// uxIDOSAG
			//				
			this.uxIDOSAG.DisplayMember = "Naziv";	
			this.uxIDOSAG.ValueMember = "ID";	
			//
			// uxIDOSGrupa
			//				
			this.uxIDOSGrupa.DisplayMember = "Oznaka";	
			this.uxIDOSGrupa.ValueMember = "ID";	
			//
			// uxIDOS
			//				
			this.uxIDOS.DisplayMember = "IDParentOS";	
			this.uxIDOS.ValueMember = "ID";	
			// 
			// OSAGPromjenaEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "OSAGPromjenaEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.Konto> _IDKontoIspravkaList;
		
		/// <summary>
		/// The ComboBox associated with the IDKontoIspravka property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Konto> IDKontoIspravkaList
		{
			get {return _IDKontoIspravkaList;}
			set 
			{
				this._IDKontoIspravkaList = value;
				this.uxIDKontoIspravka.DataSource = null;
				this.uxIDKontoIspravka.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDKontoIspravkaList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDKontoIspravka property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDKontoIspravkaList
		{
			get { return _allowNewItemInIDKontoIspravkaList;}
			set
			{
				this._allowNewItemInIDKontoIspravkaList = value;
				this.uxIDKontoIspravka.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Konto> _IDKontoTroskaList;
		
		/// <summary>
		/// The ComboBox associated with the IDKontoTroska property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Konto> IDKontoTroskaList
		{
			get {return _IDKontoTroskaList;}
			set 
			{
				this._IDKontoTroskaList = value;
				this.uxIDKontoTroska.DataSource = null;
				this.uxIDKontoTroska.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDKontoTroskaList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDKontoTroska property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDKontoTroskaList
		{
			get { return _allowNewItemInIDKontoTroskaList;}
			set
			{
				this._allowNewItemInIDKontoTroskaList = value;
				this.uxIDKontoTroska.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Konto> _IDKontoNabaveList;
		
		/// <summary>
		/// The ComboBox associated with the IDKontoNabave property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Konto> IDKontoNabaveList
		{
			get {return _IDKontoNabaveList;}
			set 
			{
				this._IDKontoNabaveList = value;
				this.uxIDKontoNabave.DataSource = null;
				this.uxIDKontoNabave.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDKontoNabaveList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDKontoNabave property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDKontoNabaveList
		{
			get { return _allowNewItemInIDKontoNabaveList;}
			set
			{
				this._allowNewItemInIDKontoNabaveList = value;
				this.uxIDKontoNabave.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.OSAmortizacijskaGrupa> _IDOSAGList;
		
		/// <summary>
		/// The ComboBox associated with the IDOSAG property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.OSAmortizacijskaGrupa> IDOSAGList
		{
			get {return _IDOSAGList;}
			set 
			{
				this._IDOSAGList = value;
				this.uxIDOSAG.DataSource = null;
				this.uxIDOSAG.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDOSAGList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDOSAG property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDOSAGList
		{
			get { return _allowNewItemInIDOSAGList;}
			set
			{
				this._allowNewItemInIDOSAGList = value;
				this.uxIDOSAG.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.OSGrupa> _IDOSGrupaList;
		
		/// <summary>
		/// The ComboBox associated with the IDOSGrupa property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.OSGrupa> IDOSGrupaList
		{
			get {return _IDOSGrupaList;}
			set 
			{
				this._IDOSGrupaList = value;
				this.uxIDOSGrupa.DataSource = null;
				this.uxIDOSGrupa.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDOSGrupaList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDOSGrupa property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDOSGrupaList
		{
			get { return _allowNewItemInIDOSGrupaList;}
			set
			{
				this._allowNewItemInIDOSGrupaList = value;
				this.uxIDOSGrupa.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.OsnovnoSredstvo> _IDOSList;
		
		/// <summary>
		/// The ComboBox associated with the IDOS property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.OsnovnoSredstvo> IDOSList
		{
			get {return _IDOSList;}
			set 
			{
				this._IDOSList = value;
				this.uxIDOS.DataSource = null;
				this.uxIDOS.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDOSList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDOS property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDOSList
		{
			get { return _allowNewItemInIDOSList;}
			set
			{
				this._allowNewItemInIDOSList = value;
				this.uxIDOS.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
